

<body>

    <div class="hd">
        <div class="warp">
            <ul class="btn-list">
                <li class="item">

                    <a href="<?php echo $base_url?>home/order/shoppingcar" class="shop-car bg">
                        <!--<div class="num">1</div>-->
                        <i class="icon iconfont icon-icon"></i>
                    </a>
                </li>
                <li  class="item">
                     <!--<a href="./register.html">
                        <i class="iconfont icon-wode"></i>请登录
                    </a>-->
                    <?php if(isset($user)){?>
                    <span href="#" class="bg">
                        <i class="icon iconfont icon-wode"></i><?php echo $user->mobile;?>
                    </span>
                    
                    <ul class="child-item">
                            <li><a href="<?php echo $base_url?>home/order/userorders">我的订单</a></li>
                            <li><a href="<?php echo $base_url?>home/address">收货地址</a></li>
                            <li><a href="<?php echo $base_url;?><?php if(!empty($cardid)){echo 'home/card/cardlist';}else{echo 'home/card/addcard';}?>">绑定银行卡</a></li>
                            <li><a href="<?php echo $base_url?>home/account/logout">退出商城</a></li>

                    </ul>
                    <?php }else{?>
                    <a href="<?php echo $base_url?>home/account/login?back_url=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>">
                        <i class="iconfont icon-wode"></i>请登录
                    </a>
                    <?php }?>
                </li>
            </ul>
            <a href="<?php echo $base_url?>home/goods/index">
            <img src="<?php echo $base_url?>static/dist/images/logo.png" alt="" class="logo-img">
             <span class="span_txt">商城首页</span>
            </a>
        </div>
    </div>
    
    <div class="banner-box">
        <!-- Swiper -->
        <div class="swiper-container">
            <div class="swiper-wrapper">
				<div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner_1.jpg')">
                    </a>
                </div>
                <!--<div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner1.jpg')">
                    </a>
                </div>
                <div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner2.jpg')">
                    </a>
                </div>
                <div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner1.jpg')">
                    </a>
                </div>
                <div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner2.jpg')">
                    </a>
                </div>
                <div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner1.jpg')">
                    </a>
                </div>
                <div class="swiper-slide">
                    <a href="#" style="background-image:url('<?php echo $base_url?>static/dist/images/banner2.jpg')">
                    </a>
                </div>-->
            </div>
            <!-- Add Pagination  -->
            <div class="swiper-pagination"></div>
        </div>

    </div>

    <div class="zero-tit-bar">
        <img class="zero-icon" src="<?php echo $base_url?>static/dist/images/zero-icon.png" alt="">
        <div class="line"></div>
    </div>

    <div class="prod-list">
        <div class="warp">
            <ul>
            <?php if(!empty($info)){foreach($info as $key => $value){?>
                <li>
                    <a href="<?php echo $base_url; ?>home/goods/goodsDetail?goods_id=<?php echo $value['goods_id'];?>" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_path.$value['img_path'];?>" alt="<?php echo $value['img_name']?>">
                        </div>
                        <div class="msg">
                            <p class="name"><?php echo $value['name'];?></p>
                            <p class="sm-msg"><?php echo $value['other_name'];?></p>
                            <p class="price"> <span>¥</span><?php echo $value['price'];?></p>
                        </div>
                    </a>
                </li>
            <?php }}?>
               <!--  <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#123" class="prod-itm">
                        <div class="img">
                            <img src="<?php echo $base_url?>static/dist/images/tmp1.jpg" alt="">
                        </div>
                        <div class="msg">
                            <p class="name">血糖仪</p>
                            <p class="sm-msg">每分钟脉搏/智能语音播报</p>
                            <p class="price"> <span>¥</span>399</p>
                        </div>
                    </a>
                </li> -->
            </ul>
        </div>
        <div class="clear"></div>

    </div>


    <div class="rights-bar">
        <div class="warp">
            <ul>
                <li class="rights-item">
                    <i>
                        <img src="<?php echo $base_url?>static/dist/images/icon1.png" alt="">
                    </i> 正品保障
                </li>
                <li class="rights-item">
                    <i>
                        <img src="<?php echo $base_url?>static/dist/images/icon2.png" alt="">
                    </i>全场包邮
                </li>
                <li class="rights-item">
                    <i>
                        <img src="<?php echo $base_url?>static/dist/images/icon3.png" alt="">
                    </i>总部发货
                </li>
            </ul>
        </div>
    </div>

   
    <?php $this->load->view('home/pc/comm'); ?>

    <script src="<?php echo $base_url?>static/dist/js/lib/jquery.min.js"></script>
    <script src="<?php echo $base_url?>static/dist/js/lib/swiper.jquery.min.js"></script>

    <script>
        $(function () {
            var swiperSlide = $('.swiper-container').find('.swiper-slide');
            if (swiperSlide.length > 2) {
                var swiper = new Swiper('.swiper-container', {
                    pagination: '.swiper-pagination',
                    paginationClickable: true
                });
            }
        })
    </script>
    <?php $this->load->view('home/pc/footer_js');?>
</body>

</html>
